<?php

namespace app\model;

use support\Model;


/**
 * @property mixed $create_time
 * @property mixed $update_time
 * @property mixed $create_by
 * @property mixed $update_by
 * @property mixed $remark
 * @property mixed $version
 * @property mixed $id
 * @property mixed $cover
 * @property mixed $sort
 * @property mixed $title
 * @property mixed $movie_id
 * @property mixed $type_id
 * @property mixed $status
 * @property mixed $movieIdId
 * @property mixed $video_id
 */
class MovieVideo extends Model
{

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'movie_videos';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    /**
     * 获取与用户相关的电话记录
     */
    public function video()
    {
        return $this->hasOne(Video::class,'id','id');
    }

}